package com.coding.springboot.demo.service;

import com.coding.springboot.demo.dao.TwxuserDao;
import com.coding.springboot.demo.entity.Twxuser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by qince on 2015/8/3.
 */
@Service
@Transactional
public class TwxuserService {
    @Autowired
    private TwxuserDao twxuserDao;

    public void save(Twxuser twxuser) {
        this.twxuserDao.save(twxuser);
    }

    @Transactional(readOnly=true)
    public Twxuser getByWxno(java.lang.String v) {
        return twxuserDao.getByWxno(v);
    }
}
